<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String price = request.getParameter("price");//获取购物车总计
String money = request.getParameter("money");
System.out.println("微信客户端需要支付总共："+price);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>微信支付</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  		<div style="width: 100%" align="center">
  				<br><br><br>
   				<div >
   						<img src="image/wx1.png"/><br><br>
   						<h1>只支持手机端扫码支付</h1>
   				</div>
   		<div >
   		
   		<%
   			response.sendRedirect("../getCode?price="+price+"&money="+money+"&machinetype="+1);
   			System.out.println("微信的扫码自动提交");
   		%>
  </body>
</html>